package com.funong.matrix.biz.base.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.funong.matrix.core.base.FunongBaseEntity;
import com.funong.matrix.core.enums.FileCategoryType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 文件业务关联表
 * </p>
 *
 * @author navigator
 * @since 2021-11-25
 */
@Data
@Accessors(chain = true)
@TableName("sys_file_business")
@ApiModel(value = "FileBusiness对象", description = "文件业务关联表")
public class SysFileBusinessEntity extends FunongBaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "文件id")
    private Integer fileId;

    @ApiModelProperty(value = "业务模块")
    private String bizModule;

    @ApiModelProperty(value = "业务id")
    private Integer bizId;
    /**
     * {@link FileCategoryType}
     */
    @ApiModelProperty(value = "业务分类")
    private String bizCategory;

    @ApiModelProperty(value = "状态")
    @TableField(value = "status", fill = FieldFill.INSERT)
    /**
     * {@link com.navigator.common.enums.DisableStatusEnum}
     */
    private Integer status;
    /**
     * 文件预览地址
     */
    @TableField(exist = false)
    private String fileUrl;
}
